/* INCLUDES ******************************************************************/

# include "ses_led.h"

/* FUNCTION DEFINITION *
 ******************************************************/

/**initializes red led.
 */
void led_redInit(void) {
	DDR( LED_RED_PORT) |= (1<<LED_RED_PIN) ;
}

/**toggles red led.
 */
void led_redToggle(void) {
	LED_RED_PORT ^= (1<<LED_RED_PIN);
}

/**enabled red led.
 */
void led_redOn(void) {
    LED_RED_PORT &= ~(1<<LED_RED_PIN);
}

/**disables red led.
 */
void led_redOff(void) {
	LED_RED_PORT |= (1<<LED_RED_PIN);
}

/**initializes yellow led.
 */
void led_yellowInit(void) {
	DDR(LED_YELLOW_PORT) |=(1<<LED_YELLOW_PIN);
}

/**toggles yellow led.
 */
void led_yellowToggle(void) {
	LED_YELLOW_PORT ^= ( 1<<LED_YELLOW_PIN);
}

/**enabled yellow led.
 */
void led_yellowOn(void) {
	LED_YELLOW_PORT &= ~(1<<LED_YELLOW_PIN);
}

/**disables yellow led.
 */
void led_yellowOff(void) {
	LED_YELLOW_PORT |= (1<<LED_YELLOW_PIN);
}

/**initializes green led.
 */
void led_greenInit(void) {
	DDR(LED_GREEN_PORT) |=(1<<LED_GREEN_PIN);
}

/**toggles green led.
 */
void led_greenToggle(void) {
	LED_GREEN_PORT ^= (1<<LED_GREEN_PIN);
}

/**enabled green led.
 */
void led_greenOn(void) {
	LED_GREEN_PORT &= ~(1<<LED_GREEN_PIN);
}

/**disables green led.
 */
void led_greenOff(void) {
	LED_GREEN_PORT |= (1<<LED_GREEN_PIN);
}


